{% extends 'layout/manage.html' %}

{% block css %}
    <style>
        .choose {
            border-left: 2px solid #f98 !important;
        }

        .error-mag {
            color: red;
        }
    </style>
{% endblock %}
{% block content %}
    <div class="container clearfix">
        <div class="col-sm-3">
            <div class="panel panel-default">
                <div class="panel-heading" style="background-color: transparent; font-weight: bold;">
                    个人中心
                </div>
                <div class="list-group">
                    <a class="list-group-item">我的资料</a>
                    <a class="list-group-item">修改密码</a>
                    <a href="{% url 'setting_delete' project_id=request.bug_platform.project.id %}" class="list-group-item choose">删除项目</a>
                </div>
            </div>
        </div>
        <div class="col-sm-9">
            <div class="panel panel-default">
                <div class="panel-heading">
                    <i class="fa fa-address-book-o" aria-hidden="true"></i> 我的资料
                </div>
                <div class="panel-body" style="text-align: center">
                    <form class="form-horizontal" method="post">
                        {% csrf_token %}
                        <div class="form-group">
                            <label class="col-sm-2 control-label">项目名</label>
                            <div class="col-sm-5">
{#                                <input type="text" class="form-control" placeholder="请输入项目名称" name={{ request.bug_platform.project.name }}>#}
                                <input type="text" class="form-control" placeholder="请输入项目名称" name='project_name'>
                                <span class="error-mag">{{ error }}</span>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-offset-2 col-sm-5" style="margin-top: 10px; margin-left: 15px">
                                    <input type="submit" class="btn btn-danger" value="删除">
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
{% endblock %}